class BigLordCardListItem extends CardValueItem 
{
    public cardImg: eui.Image;
    public constructor() 
    {
        super();
        this.skinName = "CardListItemSkin";
    }

    public dataChanged(): void 
    {
        this.currentState = "up";
        this.cardImg.visible = true;
        if (this.data) 
        {
            this.playEffect();
        }
        else 
        {
            this.cardImg.source = this.data ? this.getCardTexture(this.data) : "card_0_png";
        }
    }

    private playEffect(): void 
    {
        this.cardImg.source = "card_0_png";
        egret.Tween.get(this.cardImg).to({ scaleX: 0 }, 100).call(() => {
            this.cardImg.source = this.getCardTexture(this.data);
        }, this).to({ scaleX: 1 }, 100).wait(500).call(() => {
            this.cardImg.visible = false;
            var gameView: DDZGameSceneView = how.Application.currentScene as DDZGameSceneView;
            gameView.gameEffectPanel.playLordCardEffect(this.cardImg.localToGlobal(), this.cardImg.texture, this.itemIndex, this.data);
        }, this);
    }
}